package com.yingluo.abacus.plantform.docs.consumer.config;

import com.yingluo.abacus.plantform.docs.consumer.utils.DocsConsumerUtils;
import com.yingluo.abacus.plantform.utils.PlantformUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

//http://localhost:8099/abacus/cloud/service-provider/hello
@RestController
public class HelloControler {
	private static final Logger logger = LoggerFactory.getLogger(HelloControler.class);


	private final static String PATH = DocsConsumerUtils.MOUDLE_PATH + "/consumer/config";

    @Value("${my.message}")
    String messageCloud;
 
	@RequestMapping(value =  PlantformUtils.PROJECT_PATH  + PATH,method = RequestMethod.GET)
	public String excute() {
		   return "hi ,i am from service:" +messageCloud;
	}
	


}

